package com.xucranger.ojapi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xucranger.ojapi.enity.DTO.AtcoderQueryDTO;
import com.xucranger.ojapi.enity.VO.RankVO;
import com.xucranger.ojapi.enity.domain.Atcoder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author xucranger
* @description 针对表【atcoder】的数据库操作Mapper
* @createDate 2022-08-16 09:16:07
* @Entity com.xucranger.ojapi.enity.domain.Atcoder
*/
public interface AtcoderMapper extends BaseMapper<Atcoder> {


    List<Atcoder> queryContestByPage(Page page,@Param("queryDTO") AtcoderQueryDTO queryDTO);

    List<Atcoder> queryCareeByAcid(@Param("acid") String acid);

    List<RankVO> rank(Page page, @Param("type")String type);
}
